package com.millstein.constant;

/**
 * @description:
 * @author: tsing
 * @create: 2021-09-12 19:05
 */
public class RedisKey {

    /**
     * 注册验证码，第一个是操作类型，第二个是接收人
     */
    public static final String CHECK_CODE_KEY = "code:%s:%s";

    /**
     * 购物车，参数是登录用户的id
     */
    public static final String CART_KEY = "cart:%s";

    /**
     * 确认订单时的token，用于防止重复提交。参数登录用户的id
     */
    public static final String ORDER_SUBMIT_TOKEN = "order:submit:%s";
}
